import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const friger: AppRouteRecordRaw = {
  path: '/friger',
  name: 'friger',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '冰箱管理',
    requiresAuth: true,
    icon: 'icon-mobile',
    order: 8,
  },
  children: [
    {
      path: 'frigerList',
      name: 'frigerList',
      component: () => import('@/views/firdge/fridgeList.vue'),
      meta: {
        locale: '冰箱列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'addfriger',
      name: 'addfriger',
      component: () => import('@/views/firdge/addFridge.vue'),
      meta: {
        locale: '添加冰箱',
        requiresAuth: true,
        roles: ['*'],
      },
    }
  ],
};

export default friger;
